package com.example.Service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.Entity.UserInfo;
import com.example.Mappers.UserInfoMapper;
import com.example.Service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;

@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper,UserInfo>  implements UserInfoService {
    @Autowired
    UserInfoMapper mapper;

    public boolean userInput(String account, String password) {
        return mapper.userInput(account, password) == 1;
    }

    public void simpleDate(String account) {
        System.out.println(mapper.isTime(account));
        Date nowDate=new Date();
    }
}
